
//
//  BKCenterCicleView.m
//  bestkeep
//
//  Created by yons on 16/12/5.
//  Copyright © 2016年 utouu. All rights reserved.
//

#import "BKCenterCicleView.h"
#import "BKMainCommon.h"

@implementation BKCenterCicleView


-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
       self.backgroundColor=[UIColor clearColor];
        [self initViews];
    }
    return self;
}

-(void)initViews{
    //签到
    _imgV_Sign=[UIImageView new];
    _imgV_Sign.backgroundColor=[UIColor clearColor];
    [self addSubview:_imgV_Sign];
    
    [_imgV_Sign mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.mas_left).offset(0);
        make.right.equalTo(self.mas_right).offset(0);
        make.bottom.equalTo(self.mas_bottom).offset(0);
        make.top.equalTo(self.mas_top);
    }];
    _imgV_Sign.image=[UIImage imageNamed:@"BKIntegral_unsign"];

    _view_line=[UIView new];
    _view_line.backgroundColor=RGBACOLOR(246, 143, 56, 1);
    [self addSubview:_view_line];
    [_view_line mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.mas_left).offset(15);
        make.right.equalTo(self.mas_right).offset(-15);
        make.centerY.equalTo(_imgV_Sign.mas_centerY).offset(4);
        make.height.mas_equalTo(@(0.5));
    }];
    
    _lab_up= [UILabel new];
    _lab_up.text = @"加载中...";
    _lab_up.font=[UIFont systemFontOfSize:16];
    _lab_up.textColor=RGBACOLOR(246, 143, 56, 1);
    [_imgV_Sign addSubview:_lab_up];
    _lab_up.textAlignment=NSTextAlignmentCenter;
    [_lab_up mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(_imgV_Sign.mas_left).offset(0);
        make.right.equalTo(_imgV_Sign.mas_right).offset(0);
        make.bottom.equalTo(_view_line.mas_top).offset(0);
    }];
    
    _lab_down= [UILabel new];
    _lab_down.text = @"加载中...";
    _lab_down.font=[UIFont systemFontOfSize:10];
    _lab_down.textColor=RGBACOLOR(246, 143, 56, 1);
    [_imgV_Sign addSubview:_lab_down];
    _lab_down.textAlignment=NSTextAlignmentCenter;
    [_lab_down mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(_imgV_Sign.mas_left).offset(0);
        make.right.equalTo(_imgV_Sign.mas_right).offset(0);
        make.top.equalTo(_view_line.mas_bottom).offset(5);
    }];




}

@end
